<% provide(:title, "登录") %>

<%= form_for(:session, url: login_path, :html => {:class => 'form-signin'}) do |f| %>
  <div class="text-center mb-4">
    <h1 class="h3 mb-3 font-weight-normal">登录</h1>
  </div>
  <div class="form-label-group">
    <%#= f.label :email, "邮箱：" %>
    <%= f.text_field :email, placeholder: "请输入邮箱", class: 'form-control' %>
  </div>

  <div class="form-label-group">
    <%#= f.label :password, "密码：" %>
    <%= f.text_field :password, placeholder: '请输入密码', class: 'form-control' %>
  </div>


  <%= f.label :remember_me, class: "checkbox mb-3" do %>
    <%= f.check_box :remember_me %>
    <span>记住我</span>
  <% end %>

  <div class="actions">
    <%= f.submit "提交", class: "btn btn-lg btn-primary btn-block" %>
  </div>
<% end %>
